const merge = require('webpack-merge')
const base = require('./webpack.base')
const webpack = require('webpack')

// webpack开发环境配置
module.exports = merge(base, {
    mode: "development",
    devtool: "inline-source-map",
    devServer: {
        contentBase: 'dist',
        hot: true,
        host: 'localhost',
    },
    plugins: [
        new webpack.NamedModulesPlugin(),
        new webpack.HotModuleReplacementPlugin()
    ],
})